#include "stdafx.h"
#include "MonitorMessage.h"

IMPLEMENT_MESSAGE_DISPATCHER(CSystemMessage, CMessage)
IMPLEMENT_MESSAGE_DISPATCHER(CWorktableMessage, CMessage)
IMPLEMENT_MESSAGE_DISPATCHER(CDisplayMessage, CMessage)
IMPLEMENT_MESSAGE_DISPATCHER(CChannelCtrlMessage, CMessage)
IMPLEMENT_MESSAGE_DISPATCHER(CAlarmMessage, CMessage)
IMPLEMENT_MESSAGE_DISPATCHER(CGeneralMessage, CMessage)
IMPLEMENT_MESSAGE_DISPATCHER(CPlatformMessage, CMessage)
IMPLEMENT_MESSAGE_DISPATCHER(CVolumeMessage, CMessage)
IMPLEMENT_MESSAGE_DISPATCHER(CPlayerStatusMessage, CMessage)
IMPLEMENT_MESSAGE_DISPATCHER(CLiveViewLayoutMessage, CMessage)
IMPLEMENT_MESSAGE_DISPATCHER(CTvWallLayoutMessage, CMessage)

CMonitorMessageReceiver::CMonitorMessageReceiver()
{
}

CMonitorMessageReceiver::~CMonitorMessageReceiver()
{
}

void CMonitorMessageReceiver::OnMessage(CMessage* pMessage)
{
	CRuntimeClass* pMessageClass = pMessage->GetRuntimeClass();

	if(RUNTIME_CLASS(CSystemMessage) == pMessageClass)
	{
		OnSystemMessage(static_cast<CSystemMessage*>(pMessage));
	}
	else if(RUNTIME_CLASS(CWorktableMessage) == pMessageClass)
	{
		OnWorktableMessage(static_cast<CWorktableMessage*>(pMessage));
	}
	else if(RUNTIME_CLASS(CDisplayMessage) == pMessageClass)
	{
		OnDisplayMessage(static_cast<CDisplayMessage*>(pMessage));
	}
	else if(RUNTIME_CLASS(CChannelCtrlMessage) == pMessageClass)
	{
		OnChannelCtrlMessage(static_cast<CChannelCtrlMessage*>(pMessage));
	}
	else if(RUNTIME_CLASS(CAlarmMessage) == pMessageClass)
	{
		OnAlarmMessage(static_cast<CAlarmMessage*>(pMessage));
	}
	else if(RUNTIME_CLASS(CGeneralMessage) == pMessageClass)
	{
		OnGeneralMesage(static_cast<CGeneralMessage*>(pMessage));
	}
	else if(RUNTIME_CLASS(CPlatformMessage) == pMessageClass)
	{
		OnPlatformMessage(static_cast<CPlatformMessage*>(pMessage));
	}
	else if(RUNTIME_CLASS(CVolumeMessage) == pMessageClass)
	{
		OnVolumeMessage(static_cast<CVolumeMessage*>(pMessage));
	}
	else if(RUNTIME_CLASS(CPlayerStatusMessage) == pMessageClass)
	{
		OnPlayerStatusMessage(static_cast<CPlayerStatusMessage*>(pMessage));
	}
	else if(RUNTIME_CLASS(CLiveViewLayoutMessage) == pMessageClass)
	{
		OnLiveViewLayoutMessage(static_cast<CLiveViewLayoutMessage*>(pMessage));
	}
	else if(RUNTIME_CLASS(CTvWallLayoutMessage) == pMessageClass)
	{
		OnTvWallLayoutMessage(static_cast<CTvWallLayoutMessage*>(pMessage));
	}
}

void CMonitorMessageReceiver::OnSystemMessage(CSystemMessage* pMessage)
{
}

void CMonitorMessageReceiver::OnWorktableMessage(CWorktableMessage* pMessage)
{
}

void CMonitorMessageReceiver::OnDisplayMessage(CDisplayMessage* pMessage)
{
}

void CMonitorMessageReceiver::OnChannelCtrlMessage(CChannelCtrlMessage* pMessage)
{

}

void CMonitorMessageReceiver::OnAlarmMessage(CAlarmMessage* pMessage)
{

}

void CMonitorMessageReceiver::OnGeneralMesage(CGeneralMessage* pMessage)
{

}

void CMonitorMessageReceiver::OnPlatformMessage(CPlatformMessage* pMessage)
{

}

void CMonitorMessageReceiver::OnVolumeMessage(CVolumeMessage* pMessage)
{

}

void CMonitorMessageReceiver::OnPlayerStatusMessage(CPlayerStatusMessage* pMessage)
{

}

void CMonitorMessageReceiver::OnLiveViewLayoutMessage(CLiveViewLayoutMessage *pMessage)
{

}

void CMonitorMessageReceiver::OnTvWallLayoutMessage(CTvWallLayoutMessage *pMessage)
{

}